// 活动管理
import Layout from '@/layout'

const userRouter = [
    {
        path: '/userManage',
        component: Layout,
        redirect: '/userManage/user',
        alwaysShow: true,
        name: 'userManage',
        meta: {
            title: '用户模块',
            roles: ['admin', 'editor'],
            icon: 'el-icon-arrow-right'
        },
        children: [
            {
                path: 'role',
                component: () => import('@/views/user/role/index'),
                name: 'userRole',
                meta: { title: '角色管理' }
            },
            {
                path: 'user',
                component: () => import('@/views/user/user/index'),
                name: 'user',
                meta: { title: '用户管理' }
            },
            {
                path: 'user/detail/:id',
                component: () => import('@/views/user/user/detail'),
                name: 'userDetail',
                hidden: true,
                meta: { title: '用户详情' }
            },
            {
                path: 'userGroup',
                component: () => import('@/views/user/userGroup/index'),
                name: 'userGroup',
                meta: { title: '用户组管理' }
            },
            {
                path: 'company',
                component: () => import('@/views/user/company/index'),
                name: 'company',
                meta: { title: '公司管理' },
            },
            {
                path: 'company/add/:type/:id',
                component: () => import('@/views/user/company/add'),
                name: 'companyAdd',
                hidden: true,
                meta: { title: '公司编辑' },
            },
            {
                path: 'company/applyData/:id',
                component: () => import('@/views/user/company/applyData/index'),
                name: 'companyApplyData',
                hidden: true,
                meta: { title: '公司申请资料列表' },
            },
            {
                path: 'company/businessCategory/:id',
                component: () => import('@/views/user/company/businessCategory/index'),
                name: 'companyBusinessCategory',
                hidden: true,
                meta: { title: '公司经营类别' },
            },
            {
                path: 'developement',
                component: () => import('@/views/user/development/index'),
                name: 'developement',
                meta: { title: '开发者管理' },
            },
            {
                path: 'customer',
                component: () => import('@/views/user/customer/index'),
                name: 'customer',
                meta: { title: '客户管理' },
            },
            {
                path: 'customer/detail/:id',
                component: () => import('@/views/user/customer/detail'),
                name: 'customerDetail',
                hidden: true,
                meta: { title: '客户管理详情' },
            },
            {
                path: 'salesman',
                component: () => import('@/views/user/salesman/index'),
                name: 'salesman',
                meta: { title: '业务员管理' },
            },
            {
                path: 'salesman/detail/:id',
                component: () => import('@/views/user/salesman/detail'),
                name: 'salesmanDetail',
                hidden: true,
                meta: { title: '业务员详情' },
            }
        ]
    }
]
export default userRouter